package cn.iocoder.yudao.module.eval.controller.admin.score.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

@Schema(description = "管理后台 - 成绩计算 Request VO")
@Data
public class EvalScoreCalculationReqVO {

    @Schema(description = "计算方法", requiredMode = Schema.RequiredMode.REQUIRED, example = "weighted_average")
    @NotBlank(message = "计算方法不能为空")
    private String calculationMethod;

    @Schema(description = "计算规则", example = "{\"理论知识\": 0.4, \"实操技能\": 0.6}")
    private Map<String, Object> calculationRules;

}
